import request from './request'
import { BASE_API } from './request'

// url, methods, params, config

// 获取房屋信息
export const getHouseById = (params) => {
  return request(`${BASE_API}/v1/login/inid`, 'post', params, {}, true)
}
// 获取房屋信息
export const getHouseByBh = (params) => {
  return request(`${BASE_API}/v1/login/infwbh`, 'post', params, {}, true)
}
// 绑定房屋信息
export const bindConfirm = (params) => {
  return request(`${BASE_API}/v1/login/confirm`, 'post', params, {}, true)
}
// 绑定房屋信息
export const addhouse = (params) => {
  return request(`${BASE_API}/v1/login/addhouse`, 'post', params, {}, true)
}
// 获取房屋信息
export const houseInfo = (params) => {
  return request(`${BASE_API}/v1/houses/search-attr`, 'post', params, {}, true)
}
// 获取已采集的房屋基础信息
export const collectionInfo = (params) => {
  return request(`${BASE_API}/v1/houses/search-attrpc`, 'post', params, {}, true)
}
// 房屋信息填报
export const updateHouse = (params) => {
  return request(`${BASE_API}/v1/houses/update-house`, 'post', params)
}
// 自查记录获取
export const checkSelfLog = (params) => {
  return request(`${BASE_API}/v1/houses/search-attryhzclog`, 'post', params)
}
// 自查记录详情
export const checkSelfInfo = (params) => {
  return request(`${BASE_API}/v1/houses/search-yhlogdetaile`, 'post', params, {}, true)
}
// 村民自查房屋隐患
export const updateYhzc = (params) => {
  return request(`${BASE_API}/v1/houses/update-yhzc`, 'post', params)
}
// 图片上传
export const imgUpload = (params) => {
  return request(`${BASE_API}/v1/zm_buildings/upload`, 'post', params)
}
// 待处理列表
export const dangerPadding = (params) => {
  return request(`${BASE_API}/v1/houses/search-yhdx`, 'post', params)
}
// 隐患详情
export const dangerInfo = (params) => {
  return request(`${BASE_API}/v1/houses/search-yhxq`, 'post', params, {}, true)
}
// 隐患整改
export const dangerDispose = (params) => {
  return request(`${BASE_API}/v1/houses/update-yhzg`, 'post', params)
}
// 已处理列表
export const dangerdone = (params) => {
  return request(`${BASE_API}/v1/houses/search-yhdxbyjczt`, 'post', params)
}
// 村民所有绑定过的房屋列表
export const buildingList = (params) => {
  return request(`${BASE_API}/v1/houses/search-myfwlb`, 'post', params)
}
// 获取当前房屋人员疏散通道是否合格
export const exitFormat = (params) => {
  return request(`${BASE_API}/v1/houses/jsrysstd`, 'post', params, {}, true)
}
// 获取联系方式
export const getPhone = (params) => {
  return request(`${BASE_API}/v1/houses/getphone`, 'post', params, {}, true)
}
//
export const getMonthNumber = (params) => {
  return request(`${BASE_API}/v1/houses/TheMonthNoCheckHouse`, 'post', params, {}, true)
}
// 上个月未自查房屋列表明细
  export const getNocheckList = (params) => {
  return request(`${BASE_API}/v1/houses/TheMonthNoCheckFwlb`, 'post', params, {}, true)
}
